<?php
//三亚先行
//if($_SESSION['sid']==55) {exit("<script>window.location='dlogin.html'</script>");}
include_once("/var/www/html/new/d/common/header.html");
include_once("/var/www/html/new/d/common/left.html");
include_once("/var/www/html/new/d/class/Member.php");
include_once('/var/www/html/new/d/common/access_auth.php');// 权限控制 20150827  M:abc

$ac=$GLOBALS['_ac'];
$pw=$GLOBALS['_pw'];
$s = new SoapClient(null,array("location" => "http://localhost/open/openService/pft_insideMX.php","uri" => "www.16u.com?ac_16u=$ac|pw_16u=$pw|auth_16u=true"));

$memberID=$_SESSION['sid'];
$m=new Member($s,$memberID);
$m_info=$m->info();

$where="WHERE  memberid=".$memberID;
$str="SELECT wd_status,count(*) as num,sum(wd_money) as getmoney FROM pft_wd_cash"
    ." where fid=".$memberID." group by wd_status order by wd_status DESC";
$GLOBALS['le']->query($str);
$getmoney=0;
$tempmoney=0;
while($row=$GLOBALS['le']->fetch_assoc()){
	$nums[$row['wd_status']]=$row['num'];
	if($row['wd_status']==1){
		$getmoney+=$row['getmoney'];
	} elseif($row['wd_status']==0){
		$tempmoney=$row['getmoney'];
	}
}
$money=$m->money()/100;
if(!$m_info['bank_account2']){
	$bankaccount="bank_account2";
}
if(!$m_info['bank_account1']){
	$bankaccount="bank_account1";
}
$checkMobile=($_SESSION['dtype']==5&&$_SESSION['mobileChecked']!=1)?1:0;

//手续费
$sel_fee_bank = "select fee_bank from pft_member where id={$_SESSION['sid']} limit 1";
$GLOBALS['le']->query($sel_fee_bank);
$GLOBALS['le']->fetch_assoc();
$fee_bank = $le->f('fee_bank');
include("/var/www/html/new/d/tpl/withdraw_new.html");
?>
    <link rel="stylesheet" type="text/css" href="http://www.12301.cc/css/common/reset_style.css"/>
    <link rel="stylesheet" href="http://www.12301.cc/css/new/withdraw.css"/>

